body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fa;
}

#main-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#excel-container {
    height: 600px;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-bar {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doc-list {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.doc-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-list-item:last-child {
    border-bottom: none;
}

.doc-list-item:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.doc-list-item .title {
    font-size: 16px;
    font-weight: 500;
}

.doc-list-item .date {
    font-size: 14px;
    color: #6c757d;
}

#versionHistoryModal .modal-body {
    max-height: 500px;
    overflow-y: auto;
}

/* 加载状态样式 */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    -moz-animation: spin 1s ease-in-out infinite;
    -o-animation: spin 1s ease-in-out infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* 自定义 auth-error 类样式 */
.auth-error {
    font-size: 14px;
    font-style: italic;
}

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    border: none;
    background-color: #f8f9fa;
    color: #0d6efd;
    border-radius: 4px;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: #fff;
}

.toggle-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f8f9fa;
    border: none;
    border-top: 1px solid #e9ecef;
    color: #0d6efd;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-button:hover {
    background-color: #e9ecef;
}